/**
 * Created by mac1 on 2017/11/9.
 */
var http = require('http');
http.createServer(function (request,response) {
  response.writeHead(210,{
    'Content-Type':'text/plain'
  });

  request.on('data',function (chunk) {
    response.write(chunk);
    console.log(chunk);
  });
  request.on('end',function () {
    response.end();
  });
}).listen(8124);